package cp.tools.db;

import java.io.FileNotFoundException;
import java.io.IOException;

import cp.tools.db.utils.MakeDataBaseInfoXML;

public class WriteMain {
	
	static String ip= "127.0.0.1";//"192.168.1.102";
	static String port= "1433"; 
	static String dbname= "blood_library"; 
	static String username= "sa"; 
	static String password= "sql";
	static String databasetype= "SQL Server 2008 R2";
	
	static String xmlFilePath = "C:/blood_library.xml";

	/**
	 * @param args
	 * @throws IOException 
	 * @throws FileNotFoundException 
	 */
	public static void main(String[] args)
			throws Exception {
		new MakeDataBaseInfoXML(ip, port, dbname, username, 
				password, databasetype, xmlFilePath).makeDataBaseXML();
	}

}
